/*
 * @Author: fhw
 * @Date: 2022-08-03 10:13:43
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2023-01-29 18:03:09
 * @Description:
 */

import { ApiProperty } from '@nestjs/swagger'
import { IsNotEmpty, IsDefined } from 'class-validator'
import { PageDto } from '../../common/dto/dto'

export class GetUserChatRecord extends PageDto {
  @IsNotEmpty({ message: '用户id不能为空' })
  @IsDefined({ message: '用户id不是为undefined或null' })
  @ApiProperty({
    type: String,
    name: 'userId',
    description: '用户id',
  })
  public readonly userId: string

  @ApiProperty({
    type: String,
    name: 'to_userId',
    description: '接收人id',
  })
  public readonly to_userId: string

  @ApiProperty({
    type: String,
    name: 'group_id',
    description: '群聊ID',
  })
  public readonly group_id: string
}
